Venezuela reverses ruling to strip congress of legislative powers