Iraqi cabinet backs pardon for thousands of detainees