Judge to rule on American merger by Wednesday