From blockade to transparency: Controllable photon transmission through a circuit-QED system