The ruling is the latest to address the legality of unusual maneuvers the Trump administration has performed to try and keep its favored candidates for U.S. attorney in those jobs indefinitely, without going through the usual process of getting them confirmed in the U.S. Senate.