The president warns closures could last months or a year as the partial government shutdown enters a third week.