The function performed by both state and federal governments is law enforcement.
While foreign policy and immigration regulation are primarily federal responsibilities, and school maintenance is usually a state and local function, law enforcement is a function that both levels of government engage in, addressing crime at both state and federal levels.