The US president was among several dignitaries who attended the service for the late lawmaker, who died earlier this month.