A transgender student in New Jersey says his school will now let him use the boys' bathroom having been previously told he could only use the unisex one.