Spain's parliament on Friday rejected two government decrees which contained numerous measures aimed at tackling a housing crisis that has spurred nationwide protests.