Edit for clarity: optical trapping is done with lasers that are far off-resonance from any atomic transitions. The dominant effect of these lasers is therefore a shift in energy of the bare-atom states, such as the ground state, which is what forms an 'optical potential'. Actual excitation into the excited atomic states occurs only weakly, which is what makes optical trapping so useful.
Rubidium atoms spend nearly all of their time in the ground state manifold ($5S_{1/2}$ states) since the low lying excited states have a very short lifetime (10s of nanoseconds). Therefore the relevant transitions that determine trapping are transitions from the ground state, ie., the transitions from $5S_{1/2}$ to $5P_{1/2}$ and $5P_{3/2}$.
The $5P_{3/2}$ state will indeed be shifted by a light field that off-resonantly couples it to $5D_{5/2}$, but the energy of the ground state should not be affected by this higher transition.