Court lifts Sharif election ban