An appeals court made a late-night ruling against Trump officials as they dug in on cutting payments to states.