A US judge has temporarily blocked an attempt by the Trump administration to deport dozens of unaccompanied Guatemalan children back to their home country.

District Court Judge Sparkle Sooknanan's order on Sunday was in response to reports children had been put onto planes and were about to be sent to Guatemala, where lawyers argued they would be at risk of abuse and persecution.

The children arrived in the US alone and are in government custody while their immigration claims are assessed.

Lawyers for the US justice department said the children were not being deported, but rather repatriated so they could be reunited with family.

The legal proceedings were sparked early on Sunday when immigrant advocacy groups asked for an emergency injunction, claiming around 600 children could be put on planes in Texas and deported.