High-fidelity entangling gate for double-quantum-dot spin qubits