US defense chief freezes Trump's transgender ban