Chicago’s junk-rated public school district and its teachers union have agreed to a tentative contract that includes a 4% pay increase in the first year, ending months of negotiations.