Here is the exact wording of the law:
"For any taxable year of the
marriage, the spouse of a servicemember may elect to use
the same residence for purposes of taxation as the
servicemember regardless of the date on which the
marriage of the spouse and the servicemember
occurred.''.
https://www.congress.gov/bill/115th-congress/senate-bill/2248/text
**Answers are correct to the best of my ability but do not constitute tax or legal advice.