With the help of Rep. Nancy Pelosi and other powerful allies, Swalwell won key appointments.