Jewish hairdresser has right to work on the Sabbath, court rules