Mr. Trump nixed the program and canceled all pending appointments when he took office.
Led by the American Civil Liberties Union, the immigration groups argued the cancelations left migrants stranded in Mexico, where they faced violence and potential persecution.
But Judge Rudolph Contreras, an Obama appointee to the federal district court in the District of Columbia, said courts have no power to order the government to grant parole in specific cases.