The president offered support for the Republican Senate candidate, after earlier grumbles, but focused much of his speech on a defense of his own record.