United, Continental pilots ratify contract