Chief Justice John G. Roberts Jr. closed out the Supreme Court’s term on Friday with a warning to justices to cut out the carping, saying that the increasingly harsh language they’re using in their opinions to attack each other’s rulings is hurting the court.