US military to accept transgender recruits after Trump drops appeal