Polish president signs bill giving justice minister power to hire court heads