they have no right. however they do have the right to set conditions for attendance at the school. you are free to keep your phone but not attend the school. if your school has a well publicized system of fines for other misdemeanours then they may be within their rights to exact a small fine though a good lawyer could probably overturn it. is there a student council ? could you lobby to have the phone policy rescinded?