Deductions & credits

First, you can't transfer the money.

Second, any money already in an HSA may be spent for medical care for the owner, a spouse or dependents, regardless of how the money got in the account or any change in insurance circumstances since then.  You have to have qualifying HDHP insurance to make contributions, but it doesn't matter what your insurance is when you take distributions.

Third, I think you misunderstand your situation.  Exactly what kind of insurance coverage do you and your spouse have?