Nigeria's ruling party endorses president