New guidance states schools must not permit trans pupils to use the bathroom of their identified gender, but they still have a duty to safeguard them.