Eric Swalwell, a Democrat from California, prompted backlash after he inquired about the size of a Republican colleague’s pin, which is in the shape of a rifle.