The agreement would prevent Obama from implementing his recent executive actions to defer deportation for up to 5 million immigrants living in the United States illegally and granting them work permits.