House thwarts hard-right push to gut Ukraine funding