Constraining the equation of state of the Universe from distant Type Ia supernovae and cosmic microwave background anisotropies