Presidenten har hamnat i underläge mot Donald Trump i flera viktiga stater.