First law of black holes with a universal horizon