Proponents of sex education classes that focus on encouraging teenagers to remain virgins until marriage are hoping that the rescue plan for the nation’s health-care system will also save their programs, which are facing extinction because of a cutoff of federal funding.