US president voices support for deal to end 41-day government shutdown