Cowper, Spencer, Sir, active 18th century, Attorney General