Court rules against Brownsburg annexation plan