Here "it" refers to the tithe of crops and livestock.
"to have his people build the place where they will worship him". See how you translated this in Deuteronomy 12:5.