1. The rule violated is Aufbau principle. The elements which have half filled or completely filled orbitals have greater stability. So copper can get stability by transferring one electron from 4s to 3d (their energies are close to each other).
2. So the electronic configuration of copper is 1s2 2s2 2p63s23p63d104s1 not 1s2 2s2 2p 3s23p63d9 4s2