Near-optimal Policies for Resource Allocation with Correlated Arrivals