Great workout! That will give a nice boost to your fitness. “Whichever comes first” means just that. In this case, 5 hours came first so you did right by stopping there. Only the fastest runners are capable of covering 35+ miles in 5 hours, especially on challenging terrain, so the mileage limit is relevant only to them.
As a follow up. A buddy and I are running Kings Peak this weekend. It looks like it will take 6-7 hours. I am three weeks out from my next race and have a scheduled 5 hour long run, 10 total training hours this week.
Would you cut back on the weekly runs or keep those and just go longer.
You can leave the other workouts as they are. Next week you might need to go lighter based on your recovery. No need to plan a cutback–just listen to your body and take an extra rest/light day if your need it.