Girl banned from class because of dreadlocks granted access