Pakistan's parliament passes legislation regulating powers of judiciary