BANGALORE (Reuters) - A U.S. federal court has ordered Microsoft Corp to stop selling some versions of its widely used Word software in the United States in two months, ruling in favor of a small Canadian firm that accused the software giant of violating its patents.