The president rallied union workers, a constituency with whom he is popular, at a small hall in the town where he grew up before his family moved to Delaware, where he would launch his more than 50-year political career.