United Airlines and Dubai's Emirates are set to announce a codeshare agreement in the coming weeks, sources said.