Learning Fair Cooperation in Mixed-Motive Games with Indirect Reciprocity