Moscow has formally warned of "unpredictable consequences" if the US and allies keep supplying weapons to Ukraine.