Drivers who left their cars and allowed children to play Frisbee and football while a motorway was temporarily closed have been criticised by police for creating a "very dangerous" situation.