Two police officers will face court after they were charged over allegations of misconduct while off duty in 2024.