AUSTIN, Texas (AP) — U.S. Sen. John Cornyn has hailed a federal judge's decision to temporarily block President Barack Obama's executive action on immigration.

Cornyn issued a statement Tuesday saying Obama acted outside the law and went around Congress to unilaterally change U.S. immigration laws.

Another Texas Republican, Attorney General Ken Paxton, says Monday's decision by U.S. District Judge Andrew Hanen of Brownsville is a win for the rule of law in America.

Hanen's order gives a coalition of 26 states led by Texas time to pursue a lawsuit that aims to permanently stop the orders, which could spare up to 5 million people in the U.S. from deportation.

Gov. Greg Abbott, who as former attorney general led Texas into the lawsuit, said Hanen's decision rightly stops the president's overreach in its tracks.