New law to ban senior officials from holding political office