The deal comes eight months after Washington ousted former President Nicolás Maduro in a military raid.