A judge has approved a four-month injunction preventing Israel-Palestine protests on two sites until the end of this year’s graduation ceremonies.