"The Executive Branch has a duty to align federal spending and action with the will of the people," the judge said.