Kings may face each other. What is not allowed for kings is to be at adjacent positions. Moving a king next to another king would move it into check, which would be illegal. But it is perfectly legal for kings to be on the same rank or file with no pieces between them.