Venezuela's top court rules Maduro won disputed election