UK government defeated by Lords over plans for fixed Brexit date