Missouri Attorney General Andrew Bailey goes to court over transgender records