In a 5-4 decision that fell along ideological lines, the high court reversed lower court rulings that found immigrants could only be subject to mandatory detention without a bond hearing if they were detained promptly upon their release from custody.

The ruling provides President Donald Trump more authority in his efforts to arrest, detain and deport immigrants convicted of crimes. Trump administration officials frequently lament the inability to remove immigrants due to court rulings around the country.

Justice Samuel Alito wrote in a 26-page majority opinion that the U.S. Court of Appeals for the 9th Circuit — a popular Trump target — incorrectly interpreted the federal statute that outlines procedures for mandatory detention.