To the OP - you did nothing wrong. You made the best decision given your knowledge of the circumstances at the time. Be proud of your resourcefulness. You made a plan and followed it. Bravo to you!
Not to be too long winded, but the following recent experience of mine seems appropriate to share. For those of you who don't know me, I have a tad bit of experience UW. Of course the last scuba class I taught was 38 years ago so anything beyond buddy breathing techniques is a mystery to me.
Oh yea, Lyndon Johnson was President when I was first taught to dive.
Fastforward to last November. I'm in Hawaii doing stuff (not a dive trip) and have a morning off so I book a local tourist 2-tank boat dive. There was me, a guy with about 25 dives under his belt and two ladies newly minted with c-cards. Young Divemaster Lady (she kept calling me grandpa) repeated over and over and over and over her three rules: 1. No one goes deeper than 60 feet; 2. No one stays down more than 45 minutes; and 3. No one, and I mean no one, gets more than 10 feet away from her the entire dive so she can "rescue us." Fine, whatever. I just want to get wet.
First dive we were swimming along a wall at 50 feet. All of a sudden Divemaster Lady heads over the wall and the other folks follow her. I hung back and watched the group head down to what I estimate was 120 feet and stay a minute or so then come back up. WTF?
We get back on the boat and Divemaster Lady yells, screams, berates and generally belittles me for not sticking 10 feet from her on the entire dive (Rule #3). My response to her in front of the others was not very gentlemanly. To sum it up. I told her that she is the one who broke her own Rule #1 and that I really didn't want to be near 4 potentially narc'd out divers who might have decided to do a death spiral into the abyss. She forbid me from making the 2nd dive so there, she got me, put me in my place she did.
Upon our return the dive shop/boat owner was at the dock to meet us because she had called him to "deal with me." What she didn't know was that I had a very nice phone conversation with the owner during the entirety of waiting out the 2nd dive. He and I had many friends in common and had even had the same NAUI ITC Instructor way back when. It was fun to watch Divemaster Lady's face when she was, then and there handed her final paycheck and told to turn over the keys to the shop. I had a number of Mai Tai's that night reminiscing about a great day in the diving world.