A Montana judge has sided with the solar developers in a lawsuit faulting NorthWestern Energy and the Public Service Commission for thwarting small renewable energy projects.