The refunds come after millions of people lost premium subsidies for their health insurance and right before the midterm elections.