The legislation includes higher taxes on coffee, alcohol, fuel and other goods and a mechanism to cut state spending if Greece misses its budget targets.