The FA has charged Huddersfield and Crystal Palace over ugly scenes at the final whistle of Wednesday's game.