Transgender soldiers have filed a lawsuit against new gender reforms in the military, challenging policies introduced under the Trump administration’s efforts to reshape military regulations.