Federal judge rules against transgender bathroom policy