Universal gates for protected superconducting qubits using optimal control