The president will speak on Friday evening after congressional passage of legislation that narrowly averts economic calamity.