Court rules on LADWP lawsuit