In two recent decisions the court had to balance the rights of protesters against those of landowners