An amendment barring funds from being used towards fighting in Libya passed the house, dividing some Democrats.