Optimal Policies in Cities with Congestion and Agglomeration