The government shutdown is exacting a heavy mental toll on the nation’s military families, leaving them not knowing from week to week whether their paychecks will arrive.