A Theory of Competitive Partisan Lawmaking