EU gives France two-year extension for deficit reduction