Girls fail to make boys' team after legal battle