French environment minister to resign after controversial farm bill passes