You should listen to your mother next time. Sometimes reasons aren't needed. It was as simple as "Can I stay over?" "No." "Okay.". Otherwise, if you want to argue about it, then expect to argue. Don't be surprised that when you argue at her with your friends and question her decision that she'll magically decide it is fine. :/
Sorry to seem blunt, but the entire matter was just blown out of proportion and though your mother was not right to do what she did, your behavior is hardly excused as well.