Court sides with Mosby in right to fire suit