Proposed legislation behind the impending US government shutdown contains provisions that would ban federal funding for transgender adults, as well as youngsters.