In this week’s Torah portion, Joshua evolves from battlefield commander to national leader, learning from Moses that true leadership means making room for competing voices