PM Modi and Amit Shah attend swearing-in as allies secure representation