The rare rebuke from the U.S. president came after Moscow launched its biggest attack this year on the Ukrainian capital.