Court stays execution of Texas man days before he was set to die by lethal injection