The legality of Nicolás Maduro's capture has been challenged by both domestic and foreign critics of President Donald Trump.