A battle is brewing in an appeals court between the US government and environmental groups over the shipping lanes off California and their proximity to imperilled whales.

The US Department of Justice is pursuing a challenge in the US Court of Appeals for the Ninth Circuit after a federal judge in Oakland concluded that the National Marine Fisheries Service violated environmental law when it the assessed impact of the shipping lanes on endangered species.