Judges in Boston early Sunday morning granted a temporary restraining order against President Donald J. Trump’s immigration order. The ruling prohibits federal officials from detaining or deporting immigrants and refugees with valid visas or green cards or forcing them to undergo extra security screenings based solely on President Trump’s order.

Read the ruling below.