pork barrel legislation or patronage:

Acts of government that blatantly favor powerful special interest groups.