I feel your pain when conflict like that happens. It's too easy to put the blame upon yourself and go crawling back. But you did the right thing in sticking up for your friend.
Think of it this way. Those girls text-messaged you to tell you they hate you? How pathetic is that? They were trying to get a rise out of you so they can interact with you in some way, preferably negative. Don't let them get to you. Yes, I know it's easier said than done.
It's been said, "Living well is the best revenge." Don't waste anymore energy on those that would treat you like shit.
Hang in there, man.