Selma Blair filed for the restraining order after her former boyfriend allegedly attacked her, leaving her bruised and temporarily unconscious