Nigeria’s President Muhammadu Buhari was sworn in on Wednesday for a second term at the helm a country struggling with a sluggish economy and a decade-long Islamist insurgency.