Federal judge overturns Florida law banning elected official