Government says more than 6M EU citizens applied to stay in UK