The president is 24-for-24 in Senate primaries and 214-for-218 in House races, according to a Fox News tracker