How will this be enforced? (judge orders Trump administration to abide by his restraining order)

Yeah. There’s a bit of a history with this particular question:

I wanted to link to another post – mine – that, IMHO, touches on this subject: