The agreement is the closest alliance the trio can form under strict U.S. airline ownership laws that all but rule out a full merger and follows two earlier failed attempts by BA and American to forge closer ties .