The University of Cambridge has been granted a High Court order blocking Israel-Palestine protests on parts of its campus until the end of July.