Your spouse does not need to pay income tax.
Check form 2555. Since your spouse only stayed in the US for 27 days, he/she does not pass the "residence" testing.