“The result in this case is controlled by our decision four years ago invalidating a nearly identical Texas law,” wrote Chief Justice John Roberts Jr. in his concurrence in the judgment.