Judge rules school must allow transgender student to use boys’ restroom