By MICHAEL D. SHEAR and JULIA PRESTONFEB. 17, 2015

WASHINGTON — One day before hundreds of thousands of undocumented immigrants were to begin applying for work permits and legal protection, administration officials on Tuesday postponed President Obama’s sweeping executive actions on immigration indefinitely, saying they had no choice but to comply with a federal judge’s last-minute order halting the programs.

The judge’s ruling was a significant setback for the president, who had asserted broad authority to take executive actions in the face of congressional Republicans’ refusal to overhaul the immigration system. White House officials have defended the president’s actions as legal and proper even as his adversaries in Congress and the states have accused him of vastly exceeding the powers of his office.

In a decision late Monday, Judge Andrew S. Hanen, of Federal District Court for the Southern District of Texas, in Brownsville, ruled in favor of Texas and 25 other states that had challenged Mr. Obama’s immigration actions. The judge said that the administration’s programs would impose major burdens on states, unleashing illegal immigration and straining state budgets, and that the administration had not followed required procedures for changing federal rules. Read the full story in the New York Times.