President Obama praised Senator Arlen Specter warmly and told him he could count on his support for re-election.