(CNN) A federal appeals court on Thursday dismissed a Trump administration argument that "safe and sanitary" conditions do not specifically require access to items such as soap and toothbrushes, as well as adequate sleep for children in custody at Border Patrol stations.

A three-judge panel for the 9th US Circuit Court of Appeals ruled that a lower court had the right to specify what "safe and sanitary" conditions were required.

The lower court ordered the government to provide specific hygiene items, as well as directing the government to hire a "juvenile coordinator."

"Assuring that children eat enough edible food, drink clean water, are housed in hygienic facilities with sanitary bathrooms, have soap and toothpaste, and are not sleep-deprived are without doubt essential to the children's safety," Thursday's ruling states.

The appeals court upheld the lower court decision to require such conditions, rather than allow the government to decide whether to provide them.

Read More