Robust quantum control theory and demonstration with circuit QED