Venezuelan President Nicolás Maduro has praised the decision to release from prison one of the country's main opposition leaders, Leopoldo Lopez.