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 typically managed at the local level, law enforcement is a function that exists at both the state and federal levels.