President Joe Biden has signed into law a military funding bill, complete with a ban on transgender health treatments.