Do I need to trim the dishwasher drain line to prevent water build-up from the disposal? Also are elbows OK here?
You did the right thing running the dishwaser drain line as high as possible first. This will keep a sink full of water from filling the drain line.

Now you just need to cut the drain line to the appropriate length so that it's all downhill from the high point.