The event had the feel of a pep rally for the president at a time when his popularity is flagging, even in Florida.