The Democratic Alliance had threatened to withhold its vote unless President Cyril Ramaphosa fired the errant higher education minister