James, Duke of Ormond, Agrees to Surrender Dublin to English Parliament