Is this grounding configuration correct?
You have two service disconnects, so this is mostly fine
Your situation where you have a splitter box or trough as part of the service hardware is not at all unheard-of.  Since the two panels each have their own service disconnect, they have their own bonding means to go with it. This isn't much different from a duplex with two meters/panels fed from a single service entrance via a similar splitter box/trough, and likewise, that trough needs to be bonded to the service neutral, just like a meter pan.  This is also a legal place for the grounding electrode conductor connection to be made, as NEC 250.24(A)(1) permits that connection to be made anywhere from the load end of the service drop/lateral to the neutral bus on the service disconnecting means.
However, there is one issue, and that's the excess of bonding jumpering going on here, as that effectively parallels the neutral going from the meter out to the panels.  Utility and local Code standards permitting, I would have the rigid nipples between the splitter box and panels replaced with PVC, or at least fitted with insulating couplings, so that service neutral current can't stray onto parallel bonding paths, and the extraneous bonding wires from the trough to the panels removed.  This corrects a NEC 250.6(A) violation due to the parallel paths and also eliminates the need for bonding bushings + their associated jumpers.