BP today won a crucial battle in its long-running legal war over capping compensation payments to alleged victims of its Gulf of Mexico disaster, with a court ruling that could save it billions of dollars.