The 5 to 4 decision was written by Chief Justice John G. Roberts Jr. and joined by the court’s four liberals...But, as lower courts had found, Roberts said the administration did not follow procedures required by law, and did not properly weigh how ending the program would affect those who had come to rely on its protections against deportation, and the ability to work legally.