The deduction for mortgage insurance premiums and a tax break on forgiven mortgage debt had expired at the end of 2017 while funding for the National Flood Insurance Program was set to elapse on Dec. 20.