Court rules Sheikh Jarrah protests legal