Deal brings to an end 43 days of bitter rows that left federal workers without pay and disrupted thousands of flights ...