Fast multiqubit phase gate in circuit QED beyond the rotating-wave approximation