A federal judge has ruled in favor of a merger of Sprint and T-Mobile, removing the last major hurdle standing in the way of the $26.5 billion merger.