Please see the answer linked below. You can claim deductible moving expenses in the year that you paid them. Of the two items that you mention, the shipping of your things would be a deductible expense, but setting up new housing would probably not. See IRS
Publication 521 for deductible and nondeductible moving expenses.
https://ttlc.intuit.com/replies/5245649
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"