The U.S. Court of Appeals for the Ninth Circuit issued a ruling Monday that says the Bureau of Land Management and U.S. Fish and Wildlife Service violated federal law — both the Endangered Species Act and the National Environmental Policy Act — in sanctioning the construction of the 700-mile Ruby pipeline from natural gas fields in Wyoming to southern Oregon.